package collection;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo5 {
    public static void main(String[] args) {
        Collection<String> c = new ArrayList<>();
        c.add("001");
        //c.add(1); 根据泛型定义 只能传入String类型的参数
    }
}
